package com.hl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hl.mapper.AfterSaleMapper;
import com.hl.domain.AfterSale;
import com.hl.service.IAfterSaleService;

/**
 * 售后Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-07
 */
@Service
public class AfterSaleServiceImpl implements IAfterSaleService 
{
    @Autowired
    private AfterSaleMapper afterSaleMapper;

    /**
     * 查询售后
     * 
     * @param afterSaleId 售后主键
     * @return 售后
     */
    @Override
    public AfterSale selectAfterSaleByAfterSaleId(Integer afterSaleId)
    {
        return afterSaleMapper.selectAfterSaleByAfterSaleId(afterSaleId);
    }

    /**
     * 查询售后列表
     * 
     * @param afterSale 售后
     * @return 售后
     */
    @Override
    public List<AfterSale> selectAfterSaleList(AfterSale afterSale)
    {
        return afterSaleMapper.selectAfterSaleList(afterSale);
    }

    /**
     * 新增售后
     * 
     * @param afterSale 售后
     * @return 结果
     */
    @Override
    public int insertAfterSale(AfterSale afterSale)
    {
        return afterSaleMapper.insertAfterSale(afterSale);
    }

    /**
     * 修改售后
     * 
     * @param afterSale 售后
     * @return 结果
     */
    @Override
    public int updateAfterSale(AfterSale afterSale)
    {
        return afterSaleMapper.updateAfterSale(afterSale);
    }

    /**
     * 批量删除售后
     * 
     * @param afterSaleIds 需要删除的售后主键
     * @return 结果
     */
    @Override
    public int deleteAfterSaleByAfterSaleIds(Integer[] afterSaleIds)
    {
        return afterSaleMapper.deleteAfterSaleByAfterSaleIds(afterSaleIds);
    }

    /**
     * 删除售后信息
     * 
     * @param afterSaleId 售后主键
     * @return 结果
     */
    @Override
    public int deleteAfterSaleByAfterSaleId(Integer afterSaleId)
    {
        return afterSaleMapper.deleteAfterSaleByAfterSaleId(afterSaleId);
    }
}
